package service;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * Created by pengfei on 2016/12/7.
 */
public class MyInterceptor implements MethodInterceptor {
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("begin .....");
        Object o = methodInvocation.proceed();
        System.out.println("end ....");
        return o;
    }
}
